package com.hmdp.utils;

/**
 * @author 枝枝
 * @date 2023/7/16
 */
public interface ILock {
    /**
     * 尝试获取锁
     * @param timeSeconds
     * @return
     */
    boolean tryLock(long timeSeconds);

    /**
     * 释放锁
     */
    void unLock();
}
